#ifndef _ROB_PANTILT_H
#define _ROB_PANTILT_H

#include <WProgram.h>
#include <Servo.h>
#include <avr/io.h>

#define SERVO_PAN_MIN_POS 0
#define SERVO_PAN_MAX_POS 180
#define SERVO_TILT_MIN_POS 30
#define SERVO_TILT_MAX_POS 150
#define SERVO_PAN_MID_POS 90
#define SERVO_TILT_MID_POS 90




class CPantilt {
public:

  void Begin(uint8_t panPin, uint8_t tiltPin);
  void update(void);

private:
  Servo _servoPan;  // create servo object to control a servo
  Servo _servoTilt;  // create servo object to control a servo


};





extern CPantilt Pantilt;





#endif // _ROB_PANTILT_H

